#condition_three_yuan_11
# a = 10
# b = 20
# if a < b :
#     smaller = a
# else:
#     smaller = b
# print(samller)
# s =a if a < b  else b
# print(s)
#username_passwd_if_12
# import getpass
# username = input('请输入用户名：')
# passwd = getpass.gepass('请输入密码：')
# if username == 'bob'  and passwd == '123456':
#     print('LOGIN')
# else:
#     print('LOGOUT')
#guess_base_13
# import random
# nums = random.randint(1, 10)
# answer = int(input('请输入数字：'))
#
# if answer == nums:
#     print('猜对了')
# elif answer > nums :
#     print('猜大了')
# else:
#  t   print('猜小了')
# print('number is :', answer )
# result_sort_14
# result = int(input('请输入分数'))
# if result >  90:
#     print('优秀')
# elif result > 80:
#     print('良')
# elif result > 70:
#     print('可')
# elif result > 60:
#     print('及')
# else:
#     print('你该努力了')
#result_sort_15
# score = int(input('请输入分数: '))
# if score >= 60 and score < 70:
#     print('及格')
# elif 70 <= score < 80:
#     print('良')
# elif 80 <= score < 90:
#     print('好')
# elif score >= 90:
#     print('优秀')
# else:
#     print('你要努力了')
#guess_caidingke_16
# import random
# option = ['石头', '剪刀', '布']
# player = input('请输入,石头 剪刀,布：')
# computer = random.choice(option)
# print('你输入的是：%s,计算机出的是：%s' % (player,computer ))
# wins = [['石头', '剪刀'], ['剪刀', '布'], ['布', '石头']]
#
# print()
# if  player ==  computer:
#     print('平局')
# if (player,computer) in wins:
#     print('你赢了')
# else:
#     print('You Lose')
#guess_caidingke_17
# import random
# option = ['石头', '剪刀', '布']
# xuanze = '''
# (0) 石头
# (1) 剪刀
# (2) 布
# 请出拳：'''
# ind = int(input(xuanze))
# computer = random.choice(option)
# player = option[ind]
# print('你输入的是：%s,计算机出的是：%s' % (player,computer ))
# wins = [['石头', '剪刀'], ['剪刀', '布'], ['布', '石头']]
#
# print()
# if  player ==  computer:
#     print('平局')
# if (player,computer) in wins:
#     print('你赢了')
# else:
#     print('You Lose')
#guess_rigut_18
# import random
# computer = random.randint(1,100)
# while 1:
#     player = int(input('输入一到100的数字：'))
#     if player == computer:
#         print('猜对了')
#         break
#     if player > computer:
#         print('猜大了')
#     if player < computer:
#         print('猜小了')
# guess_rigut_5times_19
# import random
# computer = random.randint(1,100)
# num = 1
# while num < 6:
#     num += 1
#     player = int(input('输入一到100的数字：'))
#     if player == computer:
#         print('猜对了')
#         break
#     if player > computer:
#         print('猜大了')
#     if player < computer:
#         print('猜小了')
# print('你出的是：%s，计算机出的是：%s' % (player,computer))
#while_1_100_sum
# result = 0
# for i in range(1,101):
#     result += i
#     i += 1
# print(result)






